package Multitouch;

import processing.core.PApplet;
import tuio.*;


public class Processing extends PApplet implements TuioListener {
	
	public static void main(String args[] )
	{
		PApplet.main(new String[]{"--present", "Processing"});
	}
	@Override
	public void setup() {
		  size(400, 400);
		  fill(255, 204);
		  fill(0);
		  rect r = rect(40,40,100,100);
		  TuioClient client = new TuioClient(3333);
		  
		  client.connect();
		  client.addTuioListener(this);
		  
	}
	
	@Override
	public void draw() {
		// TODO Auto-generated method stub
		super.draw();
	}
	@Override
	public void addTuioCursor(TuioCursor arg0) {
		System.out.println(arg0.getX());
		
	}
	@Override
	public void addTuioObject(TuioObject arg0) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void refresh(long arg0) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void removeTuioCursor(TuioCursor arg0) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void removeTuioObject(TuioObject arg0) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void updateTuioCursor(TuioCursor arg0) {
		// TODO Auto-generated method stub
		
	}
	@Override
	public void updateTuioObject(TuioObject arg0) {
		// TODO Auto-generated method stub
		
	}
}
